package com.jeeplus.modules.anny.mini.exception;

import com.jeeplus.modules.anny.mini.enums.MiniExceptionEnum;

public class MiniException extends RuntimeException{

    private int code;

    public MiniException() {
    }

    public MiniException(int code, String message) {
        super(message);
        this.code = code;
    }

    public MiniException(MiniExceptionEnum e) {
        super(e.getMsg());
        this.code = e.getCode();
    }


}
